package com.sicong.admin.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * @author chenww
 * @date 2020-1-20
 */
@Data
@ApiModel(value = "权限菜单树")
public class PermissionNode extends TreeNode implements Serializable {

    @ApiModelProperty(value = "权限")
    private String permission;

    @ApiModelProperty(value = "权限名称")
    private String permissionName;

    @ApiModelProperty(value = "访问路径")
    private String path;

    @ApiModelProperty(value = "组件路径")
    private String component;

    @ApiModelProperty(value = "图标")
    private String icon;

    @ApiModelProperty(value = "排序值")
    private Integer sort;

    @ApiModelProperty(value = "路由缓冲")
    private Boolean keepAlive;

    @ApiModelProperty(value = "状态(0:禁止,1:正常)")
    private Integer status;

    @ApiModelProperty(value = "菜单类型（0:菜单 1:按钮）")
    private String type;

}
